package com.text.day2_4.compat;

import com.text.day2_3.pk.Hero;

import java.util.Comparator;

public class HeroComparator implements Comparator<Hero> {
    @Override
    public int compare(Hero o1, Hero o2) {

        return (int) (o1.getAtc() - o2.getAtc());
    }
}
